#include "TextEditBase.h"
#include "../Tools/Settings.h"

TextEditBase::TextEditBase(void)
{
	QFont font;
	font.setFamily("Courier");
	font.setFixedPitch(true);
	font.setPointSize(10);
	setFont(font);

	QFontMetrics fm(font);
	int spaceWidth = fm.width(" ");
	int tabWidth = spaceWidth * Settings.getTabsWidth();
	setTabStopWidth(tabWidth);
}


TextEditBase::~TextEditBase(void)
{
}
